package com.jk.dao;

import com.jk.entity.UserEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserDao {

    @Select("select * from t_user where user_id=#{0}")
    public UserEntity queryUserById(String user_id);

    @Update("update t_user set userpwd=#{pass} where user_id=#{id}")
    void updUserPass(@Param("id") String userId,@Param("pass") String pass);

    @Update("update t_user set userpwd=#{1} where user_id=#{0}")
    void updatePass(String user_id, String pass);
}
